package game.ui.controls
{
	import engine.asset.*;
	import flash.display.*;
	import flash.text.*;
	import game.ui.core.*;
	//import game.ui.utils.*;
	
	public class RxRoundButton extends RxButtonBase
	{
		private var m_color:uint = 7833879;
		private var m_bgContainer:Sprite;
		private var m_body:Bitmap;
		private var m_overlay:Sprite;
		
		public function RxRoundButton()
		{
			var _loc_1:* = RxFontLibrary.GenerateTextFormatForStyle(RxFontStyleConstants.DISPLAY_LARGE, 16777215, TextFormatAlign.CENTER);
			super("", null, _loc_1);
			m_width = 58;
			m_height = 58;
			this.m_bgContainer = new Sprite();
			addChild(this.m_bgContainer);
			var _loc_2:* = new RxAssetGroup();
			_loc_2.AddAsset(RxAssetImage.Create("ui/btn_round_lg/body.png", null));
			_loc_2.AddCallback(new RxAssetCallback(this.OnAssetsLoaded));
			_loc_2.Load();
		}
		
		private function OnAssetsLoaded(param1:RxAssetCallback) : void
		{
			var _loc_2:RxAssetGroup = null;
			var _loc_3:RxAssetImage = null;
			if (param1.m_result)
			{
				_loc_2 = param1.m_asset as RxAssetGroup;
				_loc_3 = _loc_2.GetAsset(0) as RxAssetImage;
				this.m_body = new Bitmap(_loc_3.GetBitmapData(), "auto", true);
				this.m_bgContainer.addChild(this.m_body);
				this.m_overlay = new Sprite();
				this.m_overlay.blendMode = BlendMode.OVERLAY;
				this.m_bgContainer.addChild(this.m_overlay);
				InvalidateDisplayState();
			}
		}
	}
}